import service from '@/utils/request'

export function getBoardListService(params) {
  return service({
    url: "/board/getAllBoard",
    method: "get",
    params
  });
}

export function getNewestPosts(params) {
  return service({
    url: "/post/newest",
    method: "get",
    params: {
      ...params,
    }
  });
}

export function getHotPosts(params) {
  return service({
    url: "/post/hot",
    method: "get",
    params: {
      ...params,
    }
  });
}

export function getUnansweredPosts(params) {
  return service({
    url: "/post/unanswered",
    method: "get",
    params: {
      ...params,
    }
  });
}

export function getHotBoardListService() {
  return service({
    url: "/board/getHotBoard",
    method: "get",
  });
}
